import { Module } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";
import { HouseEntity } from "~/modules/assess/house/house.entity";
import { AccessHouseService } from "~/modules/assess/house/house.service";
import { HouseController } from "~/modules/assess/house/house.controller";
import { UploadService } from "~/modules/tools/upload/upload.service";
import { StorageModule } from "~/modules/tools/storage/storage.module";
import { AccessDictModule } from "../access-dict/access-dict.module";
import { AliyunOssModule } from "~/shared/aliyun-oss/aliyun-oss.module";

@Module({
	imports: [
		TypeOrmModule.forFeature([HouseEntity]),
		AccessDictModule,
		StorageModule,
		AliyunOssModule
	],
	controllers: [HouseController],
	providers: [AccessHouseService, UploadService],
	exports: [TypeOrmModule, AccessHouseService],
})
export class HouseModule { }
